package com.ptmall.app.bean.event;

/**
 * @class describe
 * @anthor zyy mai:jingmengnihao@163.com
 * @time 2017/3/24 0024 下午 4:29
 * @change time
 * @class describe
 */
public class AccountError {

    public String title;
    public String message;
    public int errorCode;//错误码


    /**
     * 不合法的账号
     */
    public static final int ERROR_CODE_INVALID_ACCOUNT = 10001;
    /**
     * 其他设备登录
     */
    public static final int ERROR_CODE_LOGIN_OTHER_DEVICE = 10002;

    /**
     * 后台系统关闭---显示Dialog
     */
    public static final int ERROR_CODE_HOST_CLOSED = 0x1254;

    /**
     * 退出整个App
     */
    public static final int ERROR_CODE_QUIT_APP = 0x1255;

    public AccountError(String title, String message, int errorCode) {
        this.title = title;
        this.message = message;
        this.errorCode = errorCode;
    }

    @Override
    public String toString() {
        return "AccountError{" +
                "title='" + title + '\'' +
                ", message='" + message + '\'' +
                ", errorCode=" + errorCode +
                '}';
    }
}